package com.baor.controller;


import com.baor.domain.UserVO;
import com.baor.fegin.ExceptionManagerFeignClient;
import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/APP/equipment")
public class UserController {
    @Autowired
    private ExceptionManagerFeignClient loginFeignClient;
    @RequestMapping("/login")
    public R login(@RequestBody UserVO user) {
        return loginFeignClient.login(user);
    }
}
